import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import path from "path";
import svgr from "vite-plugin-svgr";
// https://vite.dev/config/
export default defineConfig({
  plugins: [react(), svgr({
    include: "**/*.svg?react",
  })],
  resolve: {
    alias: {
      "@src": path.resolve(__dirname, "src"),
    },
  },
  server:{
    allowedHosts: true,
    host: '0.0.0.0',
    port: 5051,
    hmr: {
      overlay: false
    }
  }
})
